package com.aode.music.viewmodel;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

import com.aode.common.bean.request.SearchData;
import com.aode.common.bean.response.User;
import com.aode.common.bean.web.Result;
import com.aode.music.repository.WebRepository;

public class MeViewModel extends AndroidViewModel {
    private WebRepository webRepository;
    public MeViewModel(@NonNull Application application) {
        super(application);
        webRepository = new WebRepository(application);
    }

    public void getUser(SearchData searchData){
        webRepository.getUser(searchData);
    }

    public MutableLiveData<Result<User>> userResultMutableLiveData(){
        return webRepository.getUserMutableLiveData1();
    }
}
